package com.axjy.yycg.web;

import com.axjy.yycg.pojo.Usergys;
import com.axjy.yycg.service.UsergysService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import java.util.List;

@RestController
@RequestMapping("/sys/gysgl")
public class UsergysHandler {

    @Resource
    private UsergysService usergysService;
    
   //查询所有角色
    @GetMapping("/list")
    public List<Usergys> list(HttpServletRequest request,String mc){
        mc=request.getParameter("mc");
        return usergysService.list(mc);
    }
}
